<!--
  ~ Copyright (C) 2019 by CS ROMANIA
  ~
  ~ This program is free software; you can redistribute it and/or modify it
  ~ under the terms of the GNU General Public License as published by the Free
  ~ Software Foundation; either version 3 of the License, or (at your option)
  ~ any later version.
  ~ This program is distributed in the hope that it will be useful, but WITHOUT
  ~ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  ~ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  ~ more details.
  ~
  ~ You should have received a copy of the GNU General Public License along
  ~ with this program; if not, see http://www.gnu.org/licenses/
  -->

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

	<head>
		<title>SNAP Product Library Tool</title>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
		<link rel="stylesheet" href="style.css">
	</head>
	
	<body>
		<table class="header">
			<tr class="header">
				<td class="header">&nbsp;
					Product Library Tool
				</td>
				<td class="header" align="right"><a href="nbdocs://org.esa.snap.snap.help/org/esa/snap/snap/help/docs/general/overview/SnapOverview.html"><img src="images/snap_header.jpg" border=0></a></td>
			</tr>
		</table>
		
		<h1>Product Library Tool</h1>
		
		<p>
			The Product Library Tool allows the user to search for products on a certain repository using specific filters to retrieve the product list. 
			Each repository has its own filters and some of them are mandatory.
		</p>

		<p>
			The products may be searched in terms of mission, satellite, product type and acquisition date. They may also be searched by graphically drawing an area of interest on the world map.
		</p>

		<img alt="product-library" src="images/product-library.png">

		<span>
			<br/><br/>There are two repository types:
		</span>
		<ul>
			<li>remote repository</li>
			<li>local repository</li>
		</ul>
		
		<h4>Remote repository</h4>

		<p>
			In order to access the products stored on a remote repository an authentication is required. In this case the user must define an account for that repository in the application.
		</p>
		
		<h5>Remote repository accounts</h5>

		<p>
			In order to add an account for a remote repository, access the 'Tools -> Options' menu and in the dialog window select the 'General -> Product Library' tab.
		</p>
		
		<img alt="remote-repository-accounts" src="images/remote-repository-accounts.png">
		
		<span>
			<br/><br/>Other configurations for remote repositories that can be set here:
		</span>
		<ul>
			<li>auto-uncompress of compressed products after download</li>
			<li>the number of entries on results page</li>
		</ul>
		
		<h5>Search products on remote repository</h5>
		
		<span>
			<br/>The remote products may be searched using some mission specific parameters (filters).<br/>
			The mandatory parameters for doing search operation by pressing <i>search</i> button &nbsp <img alt="search" src="images/search.png"> &nbsp are:
		</span>
		<ul>
			<li>Satellite</li>
			<li>Start Date</li>
			<li>End Date</li>
			<li>Area of Interest (AOI)</li>
		</ul>
		
		<img alt="search-results" src="images/search-results.png">
		
		<span>
			<br/><br/>The following actions are available for the search results:
		</span>
		<ul>
			<li>browse to the next page by pressing <i>next</i> button &nbsp <img alt="next" src="images/next.png"> &nbsp</li>
			<li>browse to the previous page by pressing <i>back</i> button &nbsp <img alt="back" src="images/back.png"> &nbsp</li>
			<li>browse to the last page by pressing <i>last</i> button &nbsp <img alt="last" src="images/last.png"> &nbsp</li>
			<li>browse to the first page by pressing <i>first</i> button &nbsp <img alt="first" src="images/first.png"> &nbsp</li>
			<li>sort the results on the page by the following criteria:
				<ul>
					<li>Product Name</li>
					<li>Mission</li>
					<li>Acquisition Date</li>
					<li>File Size</li>
				</ul>
			</li>
			<li>see the attributes by pressing <i>expand</i> button: &nbsp <img alt="expand" src="images/expand.png"> &nbsp</li>
			<li>Download the product</li>
			<li>Joint Search Criteria (a new search is performed considering the selected product footprint as AOI and a time interval [product acquisition date - 7 days, product acquisition date + 7 days]</li>
			<li>see the products distribution on timeline (either by day when possible, either by month)</li>
		</ul>
		
		<h5>Download products from remote repository</h5>
		
		<p>
			The remote products may be downloaded into a local folder.
		</p>
		<p>
			To download products press the mouse right button on the selected products and select the Download option. Then select
			the local folder used to save the products. After downloading a product into a local folder, the product can be opened in the application.
		</p>

		<h4>Local repository</h4>

		<p>
			The local folder selected to download the remote product represents a local repository. The user may add/remove a local repository, refresh the product list from the local folders according to the saved metadata from the database.
		</p>
		
		<span>
			<br/>The following actions are available for the local repository:
		</span>
		<ul>
			<li>add new local repository</li>
			<li>remove a local repository</li>
			<li>remove all local repositories</li>
			<li>refresh the product list from the local folders according to the saved metadata from the database</li>
			<li>
				search on local repository using the following parameters
				<ul>
					<li>Folder</li>
					<li>Mission</li>
					<li>Start Date</li>
					<li>End Date</li>
					<li>Sensor</li>
					<li>Attributes</li>
					<li>Area of Interest (AOI)</li>
				</ul>
			</li>
			<li>
				sort the search results on the page by the following criteria:
				<ul>
					<li>Product Name</li>
					<li>Mission</li>
					<li>Acquisition Date</li>
					<li>File Size</li>
				</ul>
			</li>
			<li>
				operate by means of a popup menu displayed after pressing the mouse right button on a selected product(s)
				<ul>
					<li>open products in the application</li>
					<li>delete products from the database</li>
					<li>
						process the products in the Batch Processing dialog<br/><br/>
						<img alt="batch-processing" src="images/batch-processing.png">
						<span>
							<br/><br/>The dialog processes the selected local products by means of a graph in order to create new products according to the graph content.
						</span>
					</li>
					<li>show the local folder containing that product</li>
				</ul>
			</li>
		</ul>
		<p class="inote">
			<b>Note</b>: The view of Area of Interest (AOI) can be changed by pressing the mouse right button on the map.<br/>
		</p>
		<p>
			<img alt="aoi-change-view" src="images/aoi-change-view.png">
		</p>
	</body>
	
</html>